deriveTxnDateRange

fun deriveTxnDateRange(onlyCostImpactingTxns: Boolean = true): DateRange?

Derive the date range that can be used to describe the transactional range for this security account's cost calculation. asOfDate is important. When null then it is assumed to be today or the most recent transactional date found The start date is derived from the oldest relevant transactional date found. Note: unRealizedSaleTxn can artificially extend the derived asOfDate / returned end date into the future.

Return

derived date range (or null if no transactions were found prior to asOfDate)

Since

MD2027

Parameters

onlyCostImpactingTxns

By default true only includes txns that impact the cost basis. Use false to include all txns found for secAccount (e.g. BANK, DIVIDEND, DIVIDENDXFR)